from utils.PathResolver import PathResolver
class WindowConfig:
    # 项目基本设置
    TITLE = "RAM-AnomalyDetector"
    VERSION = "1.0.0"
    COMPANY = "中科可控信息产业有限公司"
    DESCRIPTION = (
        "基于YOLO11的内存条安装异常检测软件\n\n"
        "本系统利用先进的计算机视觉技术和深度学习算法，实时检测内存条安装状态，"
        "确保设备正常运行。系统提供实时视频监控、异常检测和详细日志记录功能。"
    )
    TEAM_NUMBERS = [
        "2025年实习生: 杨江涛 邵启程"
    ]

    # 菜单结构配置
    MENU_HIERARCHY = {
        "设备": {
            "打开摄像头": "Ctrl+O",
            "关闭摄像头": "Ctrl+W",
        },
        "检测": {
            "开始检测": "Ctrl+R",  # R for Run
            "停止检测": "Ctrl+S",
        },
        "帮助": {
            "关于": "Ctrl+A"
        }
    }

    # 样式配置
    STYLE = {
        "menu_font": ("微软雅黑", 10),
        "status_bar": {
            "bg": "#404040",
            "fg": "white",
            "font": ("Consolas", 9)
        },
        "BG_COLOR": "#F5F6F7"
    }
    
    # 路径配置（使用动态解析）
    PATH = {
        "ICO": PathResolver.resolve("../../assets/images/64x.ico"),
        "log_dir": PathResolver.resolve("../logs"),
        "model_path": PathResolver.resolve("../assets/model/yolo.pt")
    }

    # 模块名
    MODULE_NAME = {
        "camera": "Camera",
        "yolo": "YOLO",
        "main": "SYSTEM"
    }